import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import modules from './modules'
Vue.use(Vuex)

const store = new Vuex.Store({
    modules: modules,
    plugins: [createPersistedState({
      storage: localStorage
    })]
})
export default store